VersionServiceglobal with sharing class VersionService service to create a version of a project and its details. Methods
createAsyncglobal static List<Id> createAsync(List<VersionService.Version> versions) Creates versions of projects using the version instances provided. The call creates the Version records synchronously. Then one asynchronous batch process starts for each version in the request and copies the child records for that version. Input Parameters
Return ValueThis service returns the newly created version IDs. Sample Code//Note: This sample code is for demonstration purposes only. It is not intended for //use in a production environment, is not guaranteed against defects or errors, and //is in no way optimized or streamlined. You need to provide some sample code deleteAsyncglobal static void deleteAsync(List<Id> versionIds) Removes project versions and all project version child records. This method runs asynchronously, running batch processes to delete project version data. Project version statuses immediately update to Deleting and the records should not be subsequently used. Input Parameters
Sample Code//Note: This sample code is for demonstration purposes only. It is not intended for //use in a production environment, is not guaranteed against defects or errors, and //is in no way optimized or streamlined. You need to provide some sample code VersionService.Versionglobal class Version this class is used to define how a project version can be created. Properties
|